package com.weibo.zhifa.service.imp;

import java.util.Arrays;
import java.util.List;

import org.apache.log4j.Logger;

import com.weibo.zhifa.ZhiFa;
import com.weibo.zhifa.dao.ZhifaDao;
import com.weibo.zhifa.dao.imp.ZhifaDaoImp;
import com.weibo.zhifa.service.ZhifaService;

public class ZhifaServiceImp implements ZhifaService{
	private static Logger logger =  Logger.getLogger(ZhifaServiceImp.class);
	private ZhifaDao zhifaDao = new ZhifaDaoImp();
	@Override
	public boolean addZhifa(ZhiFa zhifa) {
		// TODO Auto-generated method stub
		return zhifaDao.addZhifa(zhifa);
	}

	@Override
	public boolean deleteZhifa(String fav_id) {
		// TODO Auto-generated method stub
		return zhifaDao.deleteZhifa(fav_id);
	}

	@Override
	public boolean executeSql(String sql) {
		// TODO Auto-generated method stub
		return zhifaDao.executeSql(sql);
	}

	@Override
	public List getZhifaList(int currentPage) {
		// TODO Auto-generated method stub
		return zhifaDao.getZhifaList(currentPage);
	}

	@Override
	public List getZhifaList_bySql(String sql) {
		// TODO Auto-generated method stub
		return zhifaDao.getZhifaList_bySql(sql);
	}

	@Override
	public boolean updateZhifa(ZhiFa zhifa) {
		// TODO Auto-generated method stub
		return zhifaDao.updateZhifa(zhifa);
	}

	@Override
	public int getTaskTotalSize(String user_id) {
		// TODO Auto-generated method stub
		return zhifaDao.getTaskTotalSize(user_id);
	}

	@Override
	public boolean setHost_ids(String host_ids) {
		// TODO Auto-generated method stub
		return zhifaDao.setHost_ids(host_ids);
	}

}
